<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" type="text/css" th:href="@{/webupload/css/webuploader.css}"/>
    <style type="text/css">
        .wu-example {
            position: relative;
            padding: 45px 15px 15px;
            margin: 15px 0;
            background-color: #fafafa;
            box-shadow: inset 0 3px 6px rgba(0, 0, 0, .05);
            border-color: #e5e5e5 #eee #eee;
            border-style: solid;
            border-width: 1px 0;
        }

        .uploader-list {
            width: 100%;
            overflow: hidden;
        }

        #uploader-demo .thumbnail {
            width: 110px;
            height: 110px;
        }

        .file-item {
            float: left;
            position: relative;
            margin: 0 20px 20px 0;
            /*padding: 4px;*/
        }

        #uploader-demo .thumbnail img {
            width: 100%;
        }

        .file-item .info {
            position: absolute;
            /*left: 4px;*/
            bottom: 0px;
            /*right: 4px;*/
            height: 20px;
            line-height: 20px;
            text-indent: 5px;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            font-size: 12px;
            z-index: 10;
            width: 100%;
        }

        .file-item .error {
            position: absolute;
            top: 4px;
            left: 4px;
            right: 4px;
            background: red;
            color: white;
            text-align: center;
            height: 20px;
            font-size: 14px;
            line-height: 23px;
        }

        .uploader-list div.file-panel {
            position: absolute;
            height: 0;
            filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#80000000', endColorstr='#80000000')�;
            background: rgba( 0, 0, 0, 0.5 );
            width: 100%;
            top: 0;
            left: 0;
            overflow: hidden;
            z-index: 300;
        }

        .uploader-list div.file-panel span.rotateRight {
            background-position: -24px -24px;
        }

        .uploader-list div.file-panel span.rotateRight:hover {
            background-position: -24px 0;
        }

        .uploader-list div.file-panel span.cancel {
            background-position: -48px -24px;
        }
        .uploader-list div.file-panel span.cancel:hover {
            background-position: -48px 0;
        }

        .uploader-list div.file-panel span {
            width: 24px;
            height: 24px;
            display: inline;
            float: right;
            text-indent: -9999px;
            overflow: hidden;
            background: url(../images/icons.png) no-repeat;
            background-position-x: 0%;
            background-position-y: 0%;
            margin: 5px 1px 1px;
            cursor: pointer;
        }

        .overlay {
            position: absolute;
            top: 0px;
            left: 0px;
            z-index: 10001;
            display:none;
            filter:alpha(opacity=60);
            background-color: #777;
            opacity: 0.5;
            -moz-opacity: 0.5;
        }

        #filePicker {
            float: left;
        }
        .uploadBtn {
            position: relative;
            display: inline-block;
            cursor: pointer;
            background: #00b7ee;
            padding: 10px 15px;
            color: #fff;
            text-align: center;
            border-radius: 3px;
            overflow: hidden;
            margin-left: 10px;
        }

        .uploadBtn:hover {
            background: #00a2d4;
        }

        .uploadSuccess {
            display: block;
            width: 100%;
            height: 100%;
            text-align: center;
            background: green;
        }

        .uploadFail{
            display: block;
            width: 100%;
            height: 100%;
            text-align: center;
            background: red;
        }
    </style>
</head>
<body>

<!--dom结构部分-->
<div id="uploader-demo">
    <!--用来存放item-->
    <div id="fileList" class="uploader-list"></div>
    <div id="filePicker">选择图片</div>
    <div id="uploadBtn" class="uploadBtn">开始上传</div>
</div>

<!-- 遮罩层DIV -->
<div id="overlay" class="overlay"></div>
<div id="base64_output" style="z-index: 1000000;position: absolute;"></div>

<script type="text/javascript" th:src="@{/js/jquery.js}"></script>
<script type="text/javascript" th:src="@{/webupload/dist/webuploader.js}"></script>
<script type="text/javascript" th:src="@{/js/demo.js}"></script>
<script>

</script>
</body>
</html>